{extend name="base" /}

{block name="body"}

<section class="content-header">
  <h1>
    老赖列表
    <small>老赖 管理</small>
  </h1>
  <ol class="breadcrumb">
    <li><a href="{:url('admin/index/index')}"><i class="fa fa-dashboard"></i> Home</a></li>
    <li class="active">老赖列表</li>
  </ol>
</section>

<section class="content">

  <!-- 筛选框 -->
  <div class="box box-info">
    <div class="box-header with-border">
      <h3 class="box-title">筛选</h3>
    </div>

    <form class="form-horizontal" id="search-form">
      <div class="box-body">

        <div class="form-group">
          <label for="input3" class="col-sm-1 control-label">用户名</label>
          <div class="col-sm-3">
            <input type="text" name="name" value="{$name}" class="form-control" placeholder="请输入用户名">
          </div>
 
          <label for="input3" class="col-sm-1 control-label">卡号</label>
          <div class="col-sm-3">
            <input type="text" name="card_sn" value="{$card_sn}" class="form-control" placeholder="请输入卡号">
          </div>
        </div>

      <div class="box-footer">
        <div class="row">
          <div class="col-md-1 col-md-offset-10">
            <button type="reset" class="btn btn-default btn-reset">重置</button>
          </div>
          <div class="">
            <button type="submit" class="btn btn-info">搜索</button>
          </div>
        </div>
      </div>

    </form>
  </div>


      
<!-- 列表 -->
  <div class="row">
    <div class="col-xs-12">

      <div class="box">

        <div class="box-header">
      
          <a href="javascript:;" title="批量删除" class="btn btn-danger btn-social-icon batch-btn" data-title="删除" data-type="delete" data-url="{:url('batchProc')}"><i class="fa fa-trash-o"></i></a>

          <a href="{:isSsl()?'https':'http'}://{$_SERVER.HTTP_HOST}__DOWNLOAD__/template1.xlsx"  title="下载费用拆分模板" class="btn btn-info btn-social-icon add-btn"><i class="fa fa-cloud-download"></i></a>

          <a href="{:isSsl()?'https':'http'}://{$_SERVER.HTTP_HOST}__DOWNLOAD__/template2.xls"  title="下载主信息模板" class="btn btn-info btn-social-icon add-btn"><i class="fa fa-cloud-download"></i></a>

          <!-- <a href="{:isSsl()?'https':'http'}://{$_SERVER.HTTP_HOST}__DOWNLOAD__/template3.xlsx"  title="下载最新余额模板" class="btn btn-info btn-social-icon add-btn"><i class="fa fa-cloud-download"></i></a> -->

          <a href="javascript:;" data-act="deadbeat_cost" data-title="费用拆分信息" data-url="{:url('importView')}"  title="导入费用拆分信息" class="btn btn-danger btn-social-icon import-btn"><i class="fa fa-cloud-upload"></i></a>

          <a href="javascript:;" data-act="deadbeat_main" data-title="主信息" data-url="{:url('importView')}"  title="导入主信息" class="btn btn-danger btn-social-icon import-btn"><i class="fa fa-cloud-upload"></i></a>

          <a href="javascript:location=location" title="刷新" class="btn btn-default btn-social-icon"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></a>
          <b style="color:#444">&nbsp;&nbsp;&nbsp;老赖总数：{$info->total()}</b>
        </div>

        <div class="box-body table-responsive no-padding">
          <table class="table table-hover">
            <tr>
               <th width="3%">
                <input type="checkbox" id="checkbox-1" class="select_all">
              </th>
              <th width="4%">ID</th>
              <th>姓名</th>
              <th>卡号</th>
              <th>本金</th>
              <th>利息</th>
              <th>操作</th>
            </tr>
            {volist name="info" id="v"}
             <tr class="vertical-c">
              <td class="text-c" width="3%"><input type="checkbox" name="release_id[]" class="ic-checkbox index-chkbox" value="{$v.id}" /></td>
              <td>{$v.id}</td>
              <td>{$v.name}</td>
              <td>{$v.card_sn}</td>
              <td>{$v.principal}</td>
              <td>{$v.interest}</td>
              <td>
                  <a href="javascript:;" title="导出到word" class="btn btn-xs btn-info btn-social-icon details-btn" data-id="{$v.id}" data-url="{:url('out')}"><i class="fa fa-file-word-o"></i></a>

                  <a href="javascript:;" title="详情" class="btn btn-xs btn-danger btn-social-icon details-btn" data-id="{$v.id}" data-url="{:url('detail')}"><i class="fa fa-list"></i></a>

                  <a href="javascript:;" title="编辑" data-id="{$v.id}" data-url="{:url('edit')}" proc-url="{:url('editProc')}" class="btn btn-xs btn-info btn-social-icon edit-btn"><i class="fa fa-pencil"></i></a>
            
                  <a href="javascript:;" title="删除" data-id="{$v.id}" data-url="{:url('delete')}" class="btn btn-xs btn-danger btn-social-icon delete-btn"><i class="fa fa-trash-o"></i></a>
       
              </td>
            </tr>
            {/volist}
          </table>
        </div>
        
          <div class="box-footer clearfix">
            {$info->render()}
        </div>

      </div>

    </div>
  </div>


</section>

{/block}

{block name="script"}
<script type="text/javascript" src="__AJS__/deadbeat/index.js"></script>      
{/block}